Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified locations.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.WebForms
C#
![]() |
---|
public DateTime GetFreePeriod ( |
Visual Basic
![]() |
---|
Public Function GetFreePeriod ( _ |
Type: DateTime
The start date and time of the interval in which to search for a free period.
Type: DateTime
The end date and time of the interval in which to search for a free period.
Type: TimeSpan
The required minimum duration of the period.
Type: DateTime
An instance of the System.DateTime structure that represents the start time of the period found or DateTime.MinValue if none.
If there are recurring items associated with a resource in the specified collection, the function execution might take very long if a period with the specified duration doesn't exist.